# Maintainer : Laurent Carlier <lordheavym AT gmail DOT com>

pkgname=radeontool
pkgver=1.6.3
pkgrel=4
pkgdesc="Lowlevel tools to tweak register and dump state on radeon GPUs"
url="https://airlied.livejournal.com/"
arch=('loong64' 'x86_64')
license=('ZLIB')
source=(https://people.freedesktop.org/~airlied/radeontool/${pkgname}-${pkgver}.tar.gz
	license.txt)
depends=('libpciaccess')
sha512sums=('d2f08bb7fe8c3d6e35860e42f8d613c524375c6fd10479d9e34a7fa9c13d79f65381efebdc760cdf7f535e79c26ef2062dbe0697b1f042b32445c3e0ec4486e7'
            '1198fcd635415314ee7ef170252b0f5b3dab531be4ba6b9f0effedf44e169c59c0d29ae5821108f76ac691f41c4d06e24acb604fbf7d95b58c7d9f83b9d1165b')
         
build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  
  ./configure --prefix=/usr
  make
}

package () {
  cd ${srcdir}/${pkgname}-${pkgver}

  make DESTDIR="${pkgdir}" install
  install -D ${srcdir}/license.txt ${pkgdir}/usr/share/licenses/radeontool/license.txt
}
